#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int my_memcmp(const void* str1, const void* str2, size_t num)
{
	while (num--)
	{
		if ((char*)str1 > (char*)str2)
		{
			return 1;
		}
		else if ((char*)str1 < (char*)str2)
		{
			return -1;
		}
		str1 = (char*)str1 + 1;
		str2 = (char*)str2 + 1;
	}
	return 0;
}
int main()
{
	char arr[] = "11223344";
	char arr1[] = "10223344";
	int ret = my_memcmp(arr, arr1, 3);
	printf("%d\n", ret);
	return 0;
}